package com.itheima.aduit.mapper2;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.aduit.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.security.core.parameters.P;

import java.util.List;
import java.util.Map;

/**
 * @author qiankaofei
 * @version 1.0
 * @date 2020/12/17 22:44
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from bs_user")
    List<Map> findAllUsers();



    List<User> findUserListByParams(@Param("sql") String sql);

}
